<!DOCTYPE html>
<html>
<head>
    <title>提现管理</title>
    <#include "/header.html">
    <link type="text/css" rel="stylesheet" href="${request.contextPath}/statics/plugins/layui/css/layui.css">
    <style>
        .grid-btn .form-control{
            margin-left: 10px;
        }
        th{
            text-align: center;
        }
    </style>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <form class="form-inline">
                <div class="form-group">
                    <input type="text"  class=" col-md-1 form-control" id="startTime"
                           placeholder="请选择开始日期" readonly>
                    <input type="text"  class=" col-md-1 form-control" id="endTime"
                           placeholder="请选择结束日期" readonly>

                    <input type="text" placeholder="请输入合伙人姓名" v-model="q.name" class="form-control">

                    <input type="text" placeholder="请输入合伙人手机" v-model="q.phone" class="form-control">
                    <select class=" col-md-1 form-control" v-model="q.takeState">
                        <option v-for="take in this.takeStates" :value="take.value">{{take.msg}}</option>

                    </select>
                    <input type="button" class="btn btn-default" @click="query" value="查询"/>
                    <input type="button" class="btn btn-default" @click="clean" value="刷新"/>
                    <input type="button" class="btn btn-default" @click="commitTakeList" value="提交"/>
                    <input type="button" class="btn btn-default" @click="down" value="下载"/>
                    <!--<input type="button" class="btn btn-default" @click="add" value="添加"/>-->
                </div>
            </form>
            <!--<#if shiro.hasPermission("sys:agent:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            </#if>-->
            <!--<#if shiro.hasPermission("sys:agent:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            </#if>
            <#if shiro.hasPermission("sys:user:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
            </#if>-->
        </div>
        <table id="totalGrid"></table>
        <div id="totalGridPager"></div>
        <div style="border: 0;height: 10px;width: 100%"></div>
        <table id="jqGrid"></table>

        <div id="jqGridPager"></div>
    </div>

</div>


<script src="${request.contextPath}/statics/js/modules/finance/take.js?_${.now?long}"></script>
<script src="${request.contextPath}/statics/plugins/layui/layui.js"></script>

<script type="text/javascript">
    layui.use('laydate', function () {
        let layDate = layui.laydate;
        //常规用法
       let startTime= layDate.render({
            elem: '#startTime',
            format: 'yyyy-MM-dd',
            done:function (value,date) {
                if(value!=''){
                    date.month=date.month-1;
                    endTime.config.min=date;
                    endTime.value=value;
                    $("#endDate").val(endTime.value);
                }
                vm.q.startTime=value;
            }

        });
        let endTime=layDate.render({
            elem: '#endTime',
            format: 'yyyy-MM-dd',
            done:function (value,date) {
                if(value!=''){
                    date.month=date.month-1;
                    startTime.config.max=date;
                }
                vm.q.endTime=value;
            }
        });

    });


</script>
</body>
</html>